﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Aj.Core;

public partial class join_job_detail : PageBase
{
    protected int id;
    protected string title;
    protected DataSet ds = null;

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        id = QueryParamInt32("id");
        if (id > 0)
        {
            try
            {
                ds = CustomQuery.Job_GetJobById(id);
                if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    title = ds.Tables[0].Rows[0]["J_Name"].ToString();
                }
                else
                {
                    Page_GoTo("join-jobs.html", true);
                }
            }
            catch (Exception ex)
            {
                Utility.WriteErrorLog("join_job_detail", ex);
            }
        }
        else
        {
            Page_GoTo("join-jobs.html", true);
        }
    }
}